package com.inda.lemurshooter;

import android.app.Activity;
import android.media.AudioManager;
import android.os.Bundle;
import android.view.Window;
import android.view.WindowManager;

/**
 * Class extending Androids Activity-class.
 */
public class GameActivity extends Activity {
	
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		
		setVolumeControlStream(AudioManager.STREAM_MUSIC); // Volume controls
		
		//Make android hide the title bar when the game is played
		requestWindowFeature(Window.FEATURE_NO_TITLE);
		getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN);

		
		// Layout
		setContentView(R.layout.game_layout);
		// Find the reference to the GameSurfaceView instance created by game_layout xml.
		GameSurfaceView surfaceView = (GameSurfaceView)findViewById(R.id.view1);
		surfaceView.sendReference(this); // Send the GameSurfaceView object a reference to this class.
	}

	
}
